﻿<%@ page language="C#" autoeventwireup="true" inherits="MessageList, HF.Business.UI.OA_deploy" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>公告栏</title>
    <link href="css/hfmanger.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width=100%>
            <tr>
                <td colspan="3" class="toolbar" height="23">
                    <img src="images/rss_2.gif" style="width: 15px; height: 14px" /><strong>公告栏</strong></td>
            </tr>
            <tr height="15">
                <td colspan="3">
                </td>
            </tr>
            <tr height="15">
                <td align="center" colspan="3" valign="top">
                    <br />
                    <table style="width: 98%">
                        <tr>
                            <td align="left" class="listContent" colspan="3" style="height: 23px" valign="middle">
                                <asp:CheckBox ID="chkTitle" runat="server" Text="按主题查询" />
                                <asp:TextBox ID="txtKey" runat="server" CssClass="input_plane" Width="120px"></asp:TextBox>
                                <asp:CheckBox ID="chkContent" runat="server" Text="按内容查询" />
                                <asp:TextBox ID="txtContent" runat="server" CssClass="input_plane"></asp:TextBox>
                                <asp:Button ID="btnSearch" runat="server" CssClass="btn"
                                    Text="搜索" OnClick="btnSearch_Click" />
                                <asp:Button ID="btnAdd" runat="server" CssClass="btn" OnClick="btnAdd_Click" Text="增加" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td width="4">
                    </td>
                <td align="center" >
                    <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%" >
                        <tr>
                            <td align="left" style="width: 100%; height: 25px" class="listContent">
                                <asp:GridView ID="gvMessagelist" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    CellPadding="4" DataKeyNames="MessageId" ForeColor="#333333" GridLines="Horizontal"
                                    Width="100%" OnPageIndexChanging="gvMessagelist_PageIndexChanging" OnRowDeleting="gvMessagelist_RowDeleting">
                                    <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="Black" />
                                    <Columns>
                                        <asp:BoundField DataField="Title1" HeaderText="主题">
                                            <ItemStyle Width="300px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SubmitMan" HeaderText="发起人">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="MsgType" HeaderText="类型" >
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SubmitDate" HeaderText="提交日期">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="附件" ShowHeader="False">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server"  OnClick="LinkButton1_Click" Text='<%#Eval("FileName")%>' CommandArgument='<%#Eval("NewFileName")%>'></asp:LinkButton>
                                            </ItemTemplate>
                                            <ItemStyle Width="100px" />
                                        </asp:TemplateField>
                                        <asp:HyperLinkField DataNavigateUrlFields="MessageId"
                                            HeaderText="操作" Target="_blank" Text="详细" DataNavigateUrlFormatString="MessageAdd.aspx?MessageId={0}&amp;State=编辑" >
                                            <ItemStyle Width="80px" />
                                        </asp:HyperLinkField>
                                        <asp:CommandField DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除吗？')&quot;&gt;删除&lt;/div&gt;"
                                            HeaderText="操作" ShowDeleteButton="True" >
                                            <ItemStyle Width="80px" />
                                        </asp:CommandField>
                                    </Columns>
                                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
                                    <EditRowStyle BackColor="#2461BF" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                                    <HeaderStyle Font-Bold="True"  HorizontalAlign="Left" CssClass="gridHead" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                    
                </td>
                <td width="4">
                    </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
